<extend name="Public:base" />

<block name="content-wrapper">
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>
				作业详情
				<small>Homework Detail</small>
			</h1>
			<ol class="breadcrumb">
				<li>
					<a href="{:U('Index/index')}"> <i class="fa fa-dashboard"></i>
						首页
					</a>
				</li>
				<li>
					<a href="{:U('Homework/index')}">作业列表</a>
				</li>
				<li class="active">作业详情</li>
			</ol>
		</section>

		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="col-sm-6 col-sm-offset-3">
					<div class="box">
						<div class="box-header with-border">
							<h3 class="box-title">表单</h3>
						</div>
						<!-- /.box-header -->
						<!-- form start -->
						<div class="box-body">
							<form id="form-add" class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">标题</label>
									<div class="col-sm-9">
										<input id="title" type="text" class="form-control" value="{$homework.title}" disabled="disabled">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">内容</label>
									<div class="col-sm-9">
										<textarea id="content" class="form-control" disabled="disabled">{$homework.content}</textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">开始时间</label>
									<div class="col-sm-9">
										<input id="start_time" type="text" class="form-control" value="{:date('Y/m/d H:i', $homework['start_time'])}" disabled="disabled">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">截止时间</label>
									<div class="col-sm-9">
										<input id="end_time" type="text" class="form-control" value="{:date('Y/m/d H:i', $homework['end_time'])}" disabled="disabled">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">逻辑班级</label>
									<div class="col-sm-9">
										<select id="logic_class_id" class="form-control" disabled="disabled">
											<volist name="logic_classes" id="vo">
												<eq name="vo.id" value="$homework.logic_class.id">
													<option value="{$vo.id}" selected="selected">{$vo.name}</option>
												<else />
													<option value="{$vo.id}">{$vo.name}</option>
												</eq>																								
											</volist>
						                 </select>
									</div>
								</div>
							</form>
						</div>
						<!-- /.box-body -->
						<div class="box-footer">
							<a href="{:U('Homework/index')}" type="button" class="btn btn-default pull-right">返回</a>
						</div>
						<!-- /.box-footer -->
					</div>				
				</div>				
			</div>
		</section>
		<!-- /.content -->
	</div>
	<!-- /.content-wrapper -->
</block>